/*
 * Copyright (c) 2006, 2023, webrx.cn All rights reserved.
 *
 */

package cn.webrx;

/**
 * <p>Project: jse2303 - ProxyMovie</p>
 * <p>Powered by webrx On 2023-07-28 17:27:29</p>
 * <p>描述：<p>
 *
 * @author webrx [webrx@126.com]
 * @version 1.0
 * @since 17
 */
public class ProxyMovie implements Movie {
    private Movie movie;

    public ProxyMovie(Movie movie) {
        this.movie = movie;
    }

    public ProxyMovie() {
    }

    public Movie getMovie() {
        return movie;
    }

    public void setMovie(Movie movie) {
        this.movie = movie;
    }

    @Override
    public void show() {

    }

    @Override
    public int pf(int i) {
        return i * i;
    }

    @Override
    public void play() {
        System.out.println("公告：最新片子。。。。");
        movie.play();
        System.out.println("电影结束了，买个哥斯拉模型");

    }
}
